package cn.dqy.gotanserver.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "gotan")
public class ConfigClass {
    int port;
    String fileRootPath;
    String picType;

    String smsSecretId;
    String smsSecretKey;
    String smsAppId;
    String smsSignName;             /* 短信签名内容: 使用 UTF-8 编码，必须填写已审核通过的签名 */
    String smsTemplateId;           /* 模板 ID: 必须填写已审核通过的模板 ID */
    String smsSendPhton;//短信发给誰

    Long smsCycle;

    boolean sendEmail; //是否发送通知邮件

    Integer authPassword; //认证口令

    String webSocketEndPoint; // webSocket连接点

    @Override
    public String toString() {
        return "ConfigClass{" +
                "port=" + port +
                ", fileRootPath='" + fileRootPath + '\'' +
                ", picType='" + picType + '\'' +
                ", smsSecretId='" + smsSecretId + '\'' +
                ", smsSecretKey='" + smsSecretKey + '\'' +
                ", smsAppId='" + smsAppId + '\'' +
                ", smsSignName='" + smsSignName + '\'' +
                ", smsTemplateId='" + smsTemplateId + '\'' +
                ", smsSendPhton='" + smsSendPhton + '\'' +
                ", smsCycle=" + smsCycle +
                ", sendEmail=" + sendEmail +
                ", authPassword=" + authPassword +
                ", webSocketEndPoint='" + webSocketEndPoint + '\'' +
                '}';
    }

    public String getWebSocketEndPoint() {
        return webSocketEndPoint;
    }

    public void setWebSocketEndPoint(String webSocketEndPoint) {
        this.webSocketEndPoint = webSocketEndPoint;
    }

    public Integer getAuthPassword() {
        return authPassword;
    }

    public void setAuthPassword(Integer authPassword) {
        this.authPassword = authPassword;
    }

    public boolean isSendEmail() {
        return sendEmail;
    }

    public void setSendEmail(boolean sendEmail) {
        this.sendEmail = sendEmail;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getFileRootPath() {
        return fileRootPath;
    }

    public void setFileRootPath(String fileRootPath) {
        this.fileRootPath = fileRootPath;
    }

    public String getPicType() {
        return picType;
    }

    public void setPicType(String picType) {
        this.picType = picType;
    }

    public String getSmsSecretId() {
        return smsSecretId;
    }

    public void setSmsSecretId(String smsSecretId) {
        this.smsSecretId = smsSecretId;
    }

    public String getSmsSecretKey() {
        return smsSecretKey;
    }

    public void setSmsSecretKey(String smsSecretKey) {
        this.smsSecretKey = smsSecretKey;
    }

    public String getSmsAppId() {
        return smsAppId;
    }

    public void setSmsAppId(String smsAppId) {
        this.smsAppId = smsAppId;
    }

    public String getSmsSignName() {
        return smsSignName;
    }

    public void setSmsSignName(String smsSignName) {
        this.smsSignName = smsSignName;
    }

    public String getSmsTemplateId() {
        return smsTemplateId;
    }

    public void setSmsTemplateId(String smsTemplateId) {
        this.smsTemplateId = smsTemplateId;
    }

    public String getSmsSendPhton() {
        return smsSendPhton;
    }

    public void setSmsSendPhton(String smsSendPhton) {
        this.smsSendPhton = smsSendPhton;
    }

    public Long getSmsCycle() {
        return smsCycle;
    }

    public void setSmsCycle(Long smsCycle) {
        this.smsCycle = smsCycle;
    }
}
